import {CHANGE_LIST} from './constants';

const defaultState = {
  translateList: [/*{id:1,title:'hello'}*/]
};

export default (state = defaultState, action) => {
  switch (action.type) {
    case CHANGE_LIST:
      return {
        ...state,
        translateList: action.list
      };
    default:
      return state
  }
};
